/****
author : sailing
date: 2016/12/22
*****/
<style lang='less'>
.mainS {
  width: 100%;
  overflow-y:hidden;
  position: relative;
  .listStyle{
    overflow-y: scroll;
    overflow-x:hidden;
  }
}
</style>
<template>
 <div class="mainS" >
   <ul class='listStyle' v-bind:style="{height: h + 'px'}">
     <li>
       <lineChart></lineChart>
     </li>
     <li>
       <rizhi></rizhi>
     </li>
     <li>
       <errorVisit></errorVisit>
     </li>
     <li>
       <errorLog></errorLog>
     </li>
   </ul>
 </div>
</template>

<script>
import eventBus from '../../eventBus'
import lineChart from './mrgFiber'
import rizhi from './rizhi'
import tools from '../../server/tools'
import errorVisit from './errorVisit'
import errorLog from './errorLog'
export default {
  data () {
    return {
      uploadLen: '0',
      h: 300
    }
  },
  mounted () {
    this.h = tools.getPageHeight() - 100
  },
  methods: {
    addFiber () {
      eventBus.bus.$emit('addFiber')
    },
    changeUpload (e) {
      var files = e.target.files
      upload.load(this, files[0])
      console.log('eeeeeeeeeeeeee:', e.target.files)
    },
    uploadFiber () {
      const uploadD = document.getElementById('uploadFiber')
      uploadD.click()
    }
  },
  components: {
    lineChart,
    rizhi,
    errorVisit,
    errorLog
  }
}
</script>
